inet_ntoa

inet_ntoa converts an IPv4 address stored in network byte order in the field of the struct in_addr input parameter to the dotted decimal string representation, for example, “192.168.124.3” and returns the result as a character pointer.

Syntax

char* FAR inet_ntoa(
    __in struct in_addr        in
);

Parameters

in

A struct in_addr whose s_addr field is the address to be converted into network byte order.

Return Values

The address of a static char buffer containing the converted address.

IntervalZero.com | Support | Give Feedback